class IdentifiersController < ApplicationController
  def by_barcode
    @identifier = [Identifier.find_by_identifier_value(params["id"]).item]
    respond_to do |format|
      format.json  { render :json => @identifier }
    end
  end

  # GET /identifiers/1
  # GET /identifiers/1.json
  def show
    @identifier = Identifier.find(params[:id])

    respond_to do |format|
      format.html # show.html.erb
      format.json  { render :json => @identifier }
    end
  end
end
